package com.qianfeng.smartdevices.mapper;


import com.qianfeng.smartdevices.pojo.Menu;
import org.apache.ibatis.annotations.Select;

import java.util.List;



public interface MenusMapper {

    @Select(("SELECT * from menu"))
    List<Menu> findAllMenus();

    List<Menu> findMenuByRoleId(Long rid);
    List<Menu> findALlLeftMenus();

    void addMenu(Menu menu);

    int updateMenu(Menu menu);
}
